#include "geobase.h"
#include <iostream>
using namespace visualization;
using namespace std;

void	testADD();
void	testAssign();
void	testMultiply();
int main()
{
	testADD();
	testAssign();
	testMultiply();
	return 0;
}

void testADD()
{
	cout << "testing testADD..." << endl;
	Point pnt1(2, 5, 23), pnt2(3.2, 34.65425, 3.335);

	pnt1 += pnt2;
	cout << pnt1.getX() << endl;
	cout << pnt1.getY() << endl;
	cout << pnt1.getZ() << endl;

	pnt1 -= pnt2;
	cout << pnt1.getX() << endl;
	cout << pnt1.getY() << endl;
	cout << pnt1.getZ() << endl;

	pnt1 = pnt1 + pnt2;
	cout << pnt1.getX() << endl;
	cout << pnt1.getY() << endl;
	cout << pnt1.getZ() << endl;
}
void testAssign()
{
	cout << "testing testEqual..." << endl;
	Point pnt1(2, 5, 23), pnt2(3.2, 34.65425, 3.335);

	pnt1 = pnt2;
	cout << pnt1.getX() << endl;
	cout << pnt1.getY() << endl;
	cout << pnt1.getZ() << endl;
}
void testMultiply()
{
	cout << "testing testMultiply..." << endl;
	Point pnt1(2, 5, 23);

	pnt1 = pnt1 * 3;
	cout << pnt1.getX() << endl;
	cout << pnt1.getY() << endl;
	cout << pnt1.getZ() << endl;

	pnt1 = pnt1 / 3;
	cout << pnt1.getX() << endl;
	cout << pnt1.getY() << endl;
	cout << pnt1.getZ() << endl;

	pnt1 /= 3;
	cout << pnt1.getX() << endl;
	cout << pnt1.getY() << endl;
	cout << pnt1.getZ() << endl;
}
